﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using DTO;
using BUS;
namespace GUI
{
    public partial class ManHinhChinh : Form
    {
        public ManHinhChinh()
        {
            InitializeComponent();
        }
        
        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        /*private void button2_Click(object sender, EventArgs e)
        {
            // Kết Nối Đến CSDL , các bạn thay DataProvider của mình vào đây
            //SqlConnection myCONN = DataProvider.ConnectDB();
            
            try
            {
                MessageBox.Show("Kết Nối Thành Công :D");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Kết nối không thành công :( \n Error Detail: "+ex.ToString());
            }
            finally
            {
                myCONN.Close();
            }

        }
        */
        

        private void thêmKhuVựcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThemKhuVuc frm = new FormThemKhuVuc();
            frm.ShowDialog();
        }

        private void báoCáoDoanhThuLoạiMónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoanhThuTheoLoaiMon f = new FormBaoCaoDoanhThuTheoLoaiMon();
            f.Show();
        }

        private void báoCáoDoanhThuKhuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoanhThuTheoKhuVuc f = new FormBaoCaoDoanhThuTheoKhuVuc();
            f.Show();
        }

        private void vToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoanhThuTheoNgay f = new FormBaoCaoDoanhThuTheoNgay();
            f.Show();
        }

        private void báoCáoDoanhThuThángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoanhThuTheoThang f = new FormBaoCaoDoanhThuTheoThang();
            f.Show();
        }

        private void báoCáoDoanhThuNămToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoanhThuTheoNam f = new FormBaoCaoDoanhThuTheoNam();
            f.Show();
        }

        private void saoLưuDữLiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormSaoLuuDuLieuNhaHang f = new FormSaoLuuDuLieuNhaHang();
            f.Show();
        }

        private void phụcHồiDữLiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormPhucHoiDuLieuNhaHang f = new FormPhucHoiDuLieuNhaHang();
            f.Show();
        }

        private void danhSáchLoạiMónĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachLoaiMonAn f = new FormDanhSachLoaiMonAn();
            f.Show();
        }

        private void danhSáchMónĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachMonAn f = new FormDanhSachMonAn();
            f.Show();
        }

        private void doanhSáchKhuVựcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachKhuVuc f = new FormDanhSachKhuVuc();
            f.Show();
        }

        private void danhSáchBànĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachBanAn f = new FormDanhSachBanAn();
            f.Show();
        }

        private void danhSáchNgườiDùngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachNguoiDung f = new FormDanhSachNguoiDung();
            f.Show();
        }

        private void phânQuyềnToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void đăngKýSửDụngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDangKySuDung f = new FormDangKySuDung();
            f.Show();
        }

        private void thêmLoạiMónĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThemLoaiMonAn f = new FormThemLoaiMonAn();
            f.Show();
        }

        private void thêmMónĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThemMonAn f = new FormThemMonAn();
            f.Show();
        }

        private void thêmBànĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThemBanAn f = new FormThemBanAn();
            f.Show();
        }

        private void traCứuMónĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTraCuuMonAn f = new FormTraCuuMonAn();
            f.Show();
        }

        private void đặtBànTrướcTheoLịchToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void lậpPhiếuHóaĐơnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormLapPhieuHoaDon f = new FormLapPhieuHoaDon();
            f.Show();
        }

        private void đặtBànĂnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDatBan f = new FormDatBan();
            f.Show();
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormTraCuuMonAn f = new FormTraCuuMonAn();
            f.Show();
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            FormXemTinhTrangBan f = new FormXemTinhTrangBan();
            f.ShowDialog();
        }

    }
}
